package com.InterviewProgram;

/**
 * Create by shengong on 2019-06-04 00:11
 */
public class Singleton {
    private static Singleton singleton;
    private Singleton(){};
    public static Singleton getInstance(){
        if (singleton == null){
            return new Singleton();
        }
        return singleton;
    }
}
